import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import cors from 'cors'
import Vant from 'vant';
import 'vant/lib/index.css';
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';

// highlightjs
import hljs from 'highlight.js';

VMdPreview.use(githubTheme, {
  Hljs: hljs,
});

const app=createApp(App)
app.use(router)
app.use(cors)
app.use(Vant); // 注册所有组件
app.use(VMdPreview);
app.mount('#app')
